import Vue from 'vue';
import App from './App.vue';
//引入路由
import router from '@/router';
//三级联动组件--全局组件
import TypeNav from '@/components/TypeNav';
import Carousel from '@/components/Carousel';
import Pagination from '@/components/Pagination';
//引入仓库
import store from './store';
//引入mock数据
import '@/mock/mockServe';
//引入swiper样式
import "swiper/css/swiper.css";

Vue.component(TypeNav.name, TypeNav)
Vue.component(Carousel.name, Carousel)
Vue.component(Pagination.name,Pagination)
Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  //全局事件总线$bus配置
  beforeCreate(){
    Vue.prototype.$bus=this;
  },
  //注册路由
  router,
  //注册仓库，组件实例会多一个属性$store
  store
}).$mount('#app')
